﻿//////////////////////////////////////////////////////////////////////////////////
//
// Project            : Tortoise Bugtraq Plugin
// Module:            : BugtraqPlugin
// Description        : Form base class.
// 
// Repository         : $URL: http://bugtraqplugin.googlecode.com/svn/tags/BugTraqPlugin%20v.1.0.0.0/BugtraqPlugin/BugtraqPlugin/Forms/PluginFormBase.cs $
// Last changed by    : $LastChangedBy: torsten.baer $
// Revision           : $LastChangedRevision: 5 $
// Last Changed       : $LastChangedDate: 2010-02-08 21:35:43 +0000 (Mon, 08 Feb 2010) $
// Author             : $Author: torsten.baer $
//
// Id:                : $Id: PluginFormBase.cs 5 2010-02-08 21:35:43Z torsten.baer $
//
// Copyright:         (c) 2010 Torsten Bär
//
// Published under the MIT License. See license.txt or http://www.opensource.org/licenses/mit-license.php.
//
//////////////////////////////////////////////////////////////////////////////////

using System.Windows.Forms;
using BugtraqPlugin.DomainModel.Parameter;

namespace BugtraqPlugin.Forms
{
   /// <summary>
   /// Form base class.
   /// </summary>
   public partial class PluginFormBase : Form
   {
      #region Properties

      /// <summary>
      /// Gets the current parameters.
      /// </summary>
      public PluginParameter Parameter { get; private set; }

      #endregion

      #region Constructors

      /// <summary>
      /// Initializes a new instance of the <see cref="PluginFormBase"/> class.
      /// </summary>
      private PluginFormBase()
      {
         InitializeComponent();
         this.DialogResult = DialogResult.Cancel;
      }

      /// <summary>
      /// Initializes a new instance of the <see cref="PluginFormBase"/> class.
      /// </summary>
      /// <param name="parameter">The parameter.</param>
      public PluginFormBase(PluginParameter parameter)
         : this()
      {
         this.Parameter = parameter;
      }

      #endregion
   }
}
